<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
  xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="/template/template.xhtml">
  <ui:define name="body">
    <c:if test="${!empty beansRoute.messageErr}">
			<div><h:outputText value="#{beansRoute.messageErr}" styleClass="msg error" /></div>
		</c:if>
    <h:messages styleClass="msg" errorClass="error" fatalClass="error"/>
    <ui:insert name="begin-form" />
   	<h:form id="create-route-form">
     
     <div class="detectPosition"></div>
      
    <div class="section positionSelect">
          <h:outputLabel value="Au départ de" escape="false"/>
      <h:selectOneMenu value="#{beansRoute.pos_depart}" styleClass="large" required="false">
        <f:selectItem itemLabel="Ici" itemValue="here" />
              <f:selectItems value="#{beansRoute.user_fav_pos_select_items}"/>
        <f:selectItem itemLabel="Autre..." itemValue="other" />
      </h:selectOneMenu>
      <h:inputText value="#{beansRoute.pos_depart_other}" styleClass="large hidden other" required="false" />
          <h:inputText value="#{beansRoute.pos_depart_coords_lat}" styleClass="hidden lat" required="false" />
          <h:inputText value="#{beansRoute.pos_depart_coords_lng}" styleClass="hidden lng" required="false" />
      </div>
      
    <div class="section positionSelect">
        <h:outputLabel value="Jusqu'à" escape="false"/>
        <h:selectOneMenu value="#{beansRoute.pos_arrive}" styleClass="large" required="false">
          <f:selectItem itemLabel="Ici" itemValue="here" />
        <f:selectItems value="#{beansRoute.user_fav_pos_select_items}"/>
          <f:selectItem itemLabel="Autre..." itemValue="other" />
        </h:selectOneMenu>
        <h:inputText value="#{beansRoute.pos_arrive_other}" styleClass="large hidden other" required="false" />
        <h:inputText value="#{beansRoute.pos_arrive_coords_lat}" styleClass="hidden lat" required="false" />
        <h:inputText value="#{beansRoute.pos_arrive_coords_lng}" styleClass="hidden lng" required="false" />
      </div>
      
     
      <ui:insert name="form-end" />
    </h:form>
  </ui:define>

</ui:composition>
</html>
